<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class STeacherInfoAddPassword extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('s_teacher_info', function (Blueprint $table) {

            $table->string('email')->after('name')->index();
            $table->string('phone')->after('name')->index();
            $table->string('password')->after('name')->comment("密码");
            $table->string('remember_token')->after('score_num');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
